import request from '/@/utils/request';

/* 获取所有岗位的列表 */
export const getDoctorBaseList = () => {
	return request({
		url: '/doctor/doctorBase/getByDoctorBaseObject',
		method: 'post',
		data:{}
	});
};

/* 分页获取岗位列表 */
export const getDoctorBaseFetchList = (params?:Object) =>{
  return request({
    url: '/doctor/doctorBase/page',
    method: 'get',
    params,
  });
}

/* 删除一个岗位 */
export const deletedoctorBase = (doctorUid: Object) => {
	return request({
		url: '/doctor/doctorBase/batchdel',
		method: 'delete',
		data:doctorUid
	});
};

/* 删除多个岗位 */
export const deletedoctorBasebatchdel = (ids: Object) => {
	return request({
		url: '/doctor/doctorBase/batchdel',
		method: 'delete',
		data: ids,
	});
};

/* 修改单个岗位 */
export function putObj(obj?: Object) {
  	return request({
      url: '/doctor/doctorBase',
      method: 'put',
      data: obj,
    });
  }

/* 修改多个岗位 */
export function putbatchupdObj(obj?: Object) {
  return request({
    url: '/doctor/doctorBase/batchupd',
    method: 'put',
    data: obj,
  });
}

